//
//  CBJUserAccount.swift
//  Weibo
//
//  Created by 崔健 on 16/5/23.
//  Copyright © 2016年 cbj. All rights reserved.
//

import UIKit

class CBJUserAccount: NSObject {

    var access_token : String?
    
    // 过期秒数
    var expires_in : NSTimeInterval = 0{
    
        didSet{
        
            expires_date = NSDate(timeIntervalSinceNow: expires_in)
        }
    }
    
    //转换成的过期时间
    var  expires_date : NSDate?
    var uid : String?
    var name:String?
    var avatar_large:String?
    
    init(dict : [String : AnyObject]) {
        
        super.init()
        
        setValuesForKeysWithDictionary(dict)
    }
    
    
    override func setValue(value: AnyObject?, forUndefinedKey key: String) { }

}
